package com.ruoyi.shop.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品评论对象 shop_product_comment
 * 
 * @author Alan Zhang
 * @date 2021-09-12
 */
public class ShopProductComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评论ID */
    private Long id;

    /** 回复的评论ID */
    @Excel(name = "回复的评论ID")
    private Long pid;

    /** 评论的产品ID */
    @Excel(name = "评论的产品ID")
    private Long productId;

    /** 评论的用户ID */
    @Excel(name = "评论的用户ID")
    private Long userId;

    /** 评论的作者 */
    @Excel(name = "评论的作者")
    private String author;

    /** 评论的内容 */
    @Excel(name = "评论的内容")
    private String content;

    /** 评论的回复数量 */
    @Excel(name = "评论的回复数量")
    private Long replyCount;

    /** 排序编号，常用语置顶等 */
    @Excel(name = "排序编号，常用语置顶等")
    private Long orderNumber;

    /** “顶”的数量 */
    @Excel(name = "“顶”的数量")
    private Long voteUp;

    /** “踩”的数量 */
    @Excel(name = "“踩”的数量")
    private Long voteDown;

    /** 评论的状态 */
    @Excel(name = "评论的状态")
    private Integer status;

    /** 评论的时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评论的时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date created;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setAuthor(String author) 
    {
        this.author = author;
    }

    public String getAuthor() 
    {
        return author;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setReplyCount(Long replyCount) 
    {
        this.replyCount = replyCount;
    }

    public Long getReplyCount() 
    {
        return replyCount;
    }
    public void setOrderNumber(Long orderNumber) 
    {
        this.orderNumber = orderNumber;
    }

    public Long getOrderNumber() 
    {
        return orderNumber;
    }
    public void setVoteUp(Long voteUp) 
    {
        this.voteUp = voteUp;
    }

    public Long getVoteUp() 
    {
        return voteUp;
    }
    public void setVoteDown(Long voteDown) 
    {
        this.voteDown = voteDown;
    }

    public Long getVoteDown() 
    {
        return voteDown;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setCreated(Date created) 
    {
        this.created = created;
    }

    public Date getCreated() 
    {
        return created;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pid", getPid())
            .append("productId", getProductId())
            .append("userId", getUserId())
            .append("author", getAuthor())
            .append("content", getContent())
            .append("replyCount", getReplyCount())
            .append("orderNumber", getOrderNumber())
            .append("voteUp", getVoteUp())
            .append("voteDown", getVoteDown())
            .append("status", getStatus())
            .append("created", getCreated())
            .toString();
    }
}
